package com.ruoyi.kanfang.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kanfang.mapper.BuildingDetailReduceLogMapper;
import com.ruoyi.kanfang.domain.BuildingDetailReduceLog;
import com.ruoyi.kanfang.service.IBuildingDetailReduceLogService;

/**
 * 商品房降价日志Service业务层处理
 * 
 * @author limin
 * @date 2024-05-08
 */
@Service
public class BuildingDetailReduceLogServiceImpl implements IBuildingDetailReduceLogService 
{
    @Autowired
    private BuildingDetailReduceLogMapper buildingDetailReduceLogMapper;

    /**
     * 查询商品房降价日志
     * 
     * @param id 商品房降价日志主键
     * @return 商品房降价日志
     */
    @Override
    public BuildingDetailReduceLog selectBuildingDetailReduceLogById(Long id)
    {
        return buildingDetailReduceLogMapper.selectBuildingDetailReduceLogById(id);
    }

    /**
     * 查询商品房降价日志列表
     * 
     * @param buildingDetailReduceLog 商品房降价日志
     * @return 商品房降价日志
     */
    @Override
    public List<BuildingDetailReduceLog> selectBuildingDetailReduceLogList(BuildingDetailReduceLog buildingDetailReduceLog)
    {
        return buildingDetailReduceLogMapper.selectBuildingDetailReduceLogList(buildingDetailReduceLog);
    }

    /**
     * 新增商品房降价日志
     * 
     * @param buildingDetailReduceLog 商品房降价日志
     * @return 结果
     */
    @Override
    public int insertBuildingDetailReduceLog(BuildingDetailReduceLog buildingDetailReduceLog)
    {
        return buildingDetailReduceLogMapper.insertBuildingDetailReduceLog(buildingDetailReduceLog);
    }

    /**
     * 修改商品房降价日志
     * 
     * @param buildingDetailReduceLog 商品房降价日志
     * @return 结果
     */
    @Override
    public int updateBuildingDetailReduceLog(BuildingDetailReduceLog buildingDetailReduceLog)
    {
        return buildingDetailReduceLogMapper.updateBuildingDetailReduceLog(buildingDetailReduceLog);
    }

    /**
     * 批量删除商品房降价日志
     * 
     * @param ids 需要删除的商品房降价日志主键
     * @return 结果
     */
    @Override
    public int deleteBuildingDetailReduceLogByIds(Long[] ids)
    {
        return buildingDetailReduceLogMapper.deleteBuildingDetailReduceLogByIds(ids);
    }

    /**
     * 删除商品房降价日志信息
     * 
     * @param id 商品房降价日志主键
     * @return 结果
     */
    @Override
    public int deleteBuildingDetailReduceLogById(Long id)
    {
        return buildingDetailReduceLogMapper.deleteBuildingDetailReduceLogById(id);
    }
}
